package com.leizi.igym.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leizi.igym.domain.Post;
import com.leizi.igym.vo.PostVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author PC
* @description 针对表【t_post】的数据库操作Mapper
* @createDate 2024-04-29 16:24:50
* @Entity com.leizi.igym.domain.Post
*/
public interface PostMapper extends BaseMapper<Post> {

    PostVO selectByIdWithUserInfo(Long id);
    List<PostVO> selectWithUserInfo(@Param("current")Long current,@Param("pageSize") Long pageSize);

    List<PostVO> selectMyWithUserInfo(Long userId);
}




